package com.jindi.appuser.common;

import com.jindi.appuser.dao.OrderMapper;
import com.jindi.appuser.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledNum {
    @Autowired
    private OrderMapper orderMapper;
    @Autowired
    private UserMapper userMapper;

    @Scheduled(cron = "59 59 23 ? * *") // 重置是否分享
    public void countDrawInit() {
        userMapper.countDrawInit();
    }

 /*   @Scheduled(cron = "59 59 23 ? * *") //每天早上9：25触发
    public void clearUselessOrder() {
        userMapper.clearUselessOrder();
    }*/

}
